←Select platform

InsertRange Method

Summary

Inserts an item into the LeadCollection<T> at the specified index.

Syntax
C#
C++/CLI
Python
public virtual void InsertRange( 
   int index, 
   IEnumerable<T> items 
) 
public:  
   virtual void InsertRange( 
      Int32 index, 
      IEnumerable<T>^ items 
   ) 
def InsertRange(self,index,items): 

Parameters

index The 0-based index at which  items should be inserted.

items The IEnumerable<T> of objects to insert. The objects can be null for reference types.

Remarks

This method internally calls InsertItemRange, which may be overridden.

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

If  index is equal to Count, items are added to the end of LeadCollection<T>.

This method raises the CollectionChanged event with Add action.

Requirements

Target Platforms

Help Version 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.